package cn.wangyu.mo.admin.service.impl;

import cn.wangyu.mo.admin.entity.Admin;
import cn.wangyu.mo.admin.mapper.AdminMapper;
import cn.wangyu.mo.admin.service.IAdminService;
import cn.wangyu.mo.base.BaseServiceImpl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 管理员表 服务实现类
 * </p>
 *
 * @author wangyu
 * @since 2021-04-05
 */
@Service
public class AdminServiceImpl extends BaseServiceImpl<Admin> implements IAdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public IPage<Admin> findByPages(Page<Admin> page) {
        return adminMapper.selectByPage(page);
    }

    @Override
    public IPage<Admin> findPages(Page<Admin> page, Map<String, Object> params) {
        return adminMapper.findPages(page, false);
    }


}
